<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${empty classifyList }">
	<p class="msg info">暂无分类，请添加</p>
</c:if>
<c:if test="${!empty classifyList }">
	<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
	<table>
		<tr>
			<th>序号</th>
			<th width="60%">分类名</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${classifyList }" var="classify" varStatus="status">
			<c:if test="${status.count%2==0}">
				<tr class="odd">
			</c:if>
			<c:if test="${status.count%2!=0}">
				<tr>
			</c:if>
			<td>${status.count}</td>
			<td>${classify.name}</td>
			<td>
				<input type="button" onclick="edit('${classify.id}','${classify.name}')" value="编辑" /> |
				<input type="button" onclick="deleteClassify('${classify.id}')" value="删除" /></td>
			</tr>
		</c:forEach>
	</table>
</c:if>